<include file="__THEME__/header" />
<link rel="stylesheet" href="../Public/bug.css" type="text/css" media="screen" charset="utf-8" />
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<div class="bug_content">
  <!-- 内容 begin  -->
  <div class="bug_main">
    <!-- 画布 begin  -->
    <include file="../Public/nav_top" />
    <div class="BlogBox">
      <div class="bug_MenuSub">
        <php>if(!isset($_GET['state'])){
          $allclass = 'on';
          }else{
          $allclass = '';
          } </PHP>
        <a href="{:U('bug/index/manage','uid='.$_GET['uid'])}" class="{$allclass}">所有({:getStateCount('true')})</a>
        <PHP>foreach(getStateInfo() as $key=>$val){</PHP>
        <php>$class =($key==$_GET['state'] && isset($_GET['state']))?'on':'';</php>
        |&nbsp;<a href="{:U('bug/Index/manage', array('state'=>$key,'uid'=>$_GET['uid']))}" class="{$class}">{$val} ({:getStateCount('false',$key)})</a>
        <PHP>}</PHP>
        <ul style="float:right; font-size:12px;">
          <li>指派至：
            <select name="touid" onchange="selectto(this)" >
              <option value="">--请选择--</option>
              <volist id="vo" name="adminlist">
                <php>$selected = ($vo==$_GET['uid'])?'selected':''</php>
                <option value="{$vo}" {$selected}>{$vo|getUserName}</option>
              </volist>
            </select>
          </li>
        </ul>
      </div>
      <div>
        <!-- 好友日志 begin  -->
        <table class="bug_table" cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
            <th width="5%">Bugid</th>
            <th width="10%">指派人</th>
            <th class="bug_pl10 bug_alL" width="30%">bug标题</th>
            <th width="10%">状态</th>
            <th width="15%">指派时间</th>
          </tr>
          <volist id="vo" name="list">
            <tr>
              <td align="center" width="5%"  height="40">{$vo.id}</td>
              <td align="center" width="10%"><a href="{:U('space/view/index','uid='.$vo[douid])}" target="_blank">{$vo.douid|getUserName}</a></td>
              <td class="bug_pl10" width="30%"><a href="{:U('bug/bug/view','id='.$vo[id])}" target="_blank">{$vo.title}</a></td>
              <td align="center" width="10%"><span style="color:{$vo.state|getStateColor};"> {$vo.state|getStateInfo}</span></td>
              <td align="center" width="15%">{$vo.dotime|friendlyDate}</td>
            </tr>
          </volist>
        </table>
        <div class="page">{$html}</div>
      </div>
      <!-- 好友日志 end  -->
    </div>
  </div>
  <!-- 画布 end  -->
  <div class="c"></div>
</div>
<!-- 内容 end -->
<script>
function selectto(o){
	var state = '{:$_GET["state"]}'
	if($(o).val()){
		location.href="{:U('bug/Index/manage')}&uid="+$(o).val()+"&state="+state;
	}
}
</script>
<include file="__THEME__/footer" /> 